package com.codedancer.campus.manager.api.carousel.ro;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.URL;

@Data
@ApiModel(description = "轮播图添加或修改Ro")
public class CarouselAddOrUpdateRo {

    @ApiModelProperty("名称")
    @NotEmpty(message = "请输入名称")
    private String name;

    @ApiModelProperty("地址")
    @URL(message = "轮播图地址错误")
    private String url;

    @ApiModelProperty("描述")
    @NotEmpty(message = "请输入描述")
    private String description;

    @ApiModelProperty("是否禁用")
    @NotNull(message = "请选择是否禁用或启用")
    private Boolean disabled;
}
